using System;
using SqlSugar;

namespace NP.BPMReportPlatform.Entities.BPM_Business
{
    /// <summary>
    /// 试用期员工自动触发流程记录
    /// </summary>
    [SugarTable("UserTrialSendRecord")]
    public class TrailUserSendRecordEntity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true)]
        public string Id { get; set; }

        /// <summary>
        /// 流程号
        /// </summary>
        public string UserId { get; set; }

        /// <summary>
        /// 工号
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 月度计划
        /// </summary>
        public string WorkNumber { get; set; }

        /// <summary>
        /// 需要触发流程日期
        /// </summary>
        public DateTime NeedSendDate { get; set; }

        /// <summary>
        /// 1:制定，2：总结
        /// </summary>
        public int SendType { get; set; }

        /// <summary>
        /// 0：未发起，-1：发起失败 1：发起成功
        /// </summary>
        public int SendStatus { get; set; }

        /// <summary>
        /// 失败原因
        /// </summary>
        public string SendErrorMsg { get; set; }

        /// <summary>
        /// 试用期阶段
        /// </summary>
        public int TrialStatus { get; set; }

        /// <summary>
        /// 阶段名称
        /// </summary>
        public string TrialStatusName { get; set; }

        /// <summary>
        /// 流程号
        /// </summary>
        public string InstanceNumber { get; set; }
    }
}
